import { getIndustryEnergyConsumption } from '@/api/energyConsumption';

export default {
  data () {
    return {
      chartData: null,
    };
  },
  methods: {
    async getChartData () {
      try {
        const params = this.getParams();
        delete params.energyTypeList;
        const { data } = await getIndustryEnergyConsumption(params);
        this.chartData = data;
      } catch (e) {
        console.log(e);
      }
    },
  },
}
